/* 传递过来代码渲染,成html*/

const  lineNumbers  = require("./_lineNumbers.js")
const  preWrapper  = require("./_preWrapper.js")
const highlight = require("./highlight.js")


module.exports = (code,lang)=>{
    let hled = highlight(code,lang)
    let hledCode = `${hled}`

    let preWra = preWrapper(lang,hledCode)
    return lineNumbers(preWra)
}
